package com.cino.config;

import com.cino.interceptor.DeleteInterceptor;
import com.cino.interceptor.SaveIdInterceptor;
import com.cino.interceptor.TableNameInterceptor;
import com.cino.interceptor.UpdateInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBatisConfig {
    @Bean
    public SaveIdInterceptor saveIdInterceptor() {
        return new SaveIdInterceptor();
    }
    
    @Bean
    public UpdateInterceptor updateInterceptor() {
        return new UpdateInterceptor();
    }
    
    @Bean
    public DeleteInterceptor deleteInterceptor() {
        return new DeleteInterceptor();
    }
    
    @Bean
    public TableNameInterceptor tableNameInterceptor() {
        return new TableNameInterceptor();
    }
}